<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: RateLimiter.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#namespaces">命名空间</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">RateLimiter.h 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="exports_8h_source.html">drogon/exports.h</a>&gt;</code><br />
<code>#include &lt;memory&gt;</code><br />
<code>#include &lt;chrono&gt;</code><br />
<code>#include &lt;mutex&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
RateLimiter.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="RateLimiter_8h__incl.png" border="0" usemap="#aRateLimiter_8h" alt=""/></div>
<map name="aRateLimiter_8h" id="aRateLimiter_8h">
<area shape="rect" title=" " alt="" coords="242,5,351,31"/>
<area shape="rect" href="exports_8h.html" title=" " alt="" coords="5,79,137,104"/>
<area shape="poly" title=" " alt="" coords="261,33,122,77,120,72,260,28"/>
<area shape="rect" title=" " alt="" coords="162,79,239,104"/>
<area shape="poly" title=" " alt="" coords="283,33,229,72,226,68,280,29"/>
<area shape="rect" title=" " alt="" coords="263,79,330,104"/>
<area shape="poly" title=" " alt="" coords="299,31,299,65,294,65,294,31"/>
<area shape="rect" title=" " alt="" coords="354,79,418,104"/>
<area shape="poly" title=" " alt="" coords="313,29,362,68,359,72,309,33"/>
<area shape="rect" title=" " alt="" coords="442,79,501,104"/>
<area shape="poly" title=" " alt="" coords="326,28,431,71,429,76,324,33"/>
</map>
</div>
</div>
<p><a href="RateLimiter_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1RateLimiter.html">drogon::RateLimiter</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This class is used to limit the number of requests per second  <a href="classdrogon_1_1RateLimiter.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1SafeRateLimiter.html">drogon::SafeRateLimiter</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
命名空间</h2></td></tr>
<tr class="memitem:namespacedrogon" id="r_namespacedrogon"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedrogon.html">drogon</a></td></tr>
<tr class="memdesc:namespacedrogon"><td class="mdescLeft">&#160;</td><td class="mdescRight">Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn't handle async programs well. Drogon Test's syntax is inspired by both Google Test and Catch2 <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:a4c0f7a484aae57628970bf55f539ab5d" id="r_a4c0f7a484aae57628970bf55f539ab5d"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedrogon.html#a4c0f7a484aae57628970bf55f539ab5d">drogon::RateLimiterPtr</a> = std::shared_ptr&lt; <a class="el" href="classdrogon_1_1RateLimiter.html">RateLimiter</a> &gt;</td></tr>
<tr class="separator:a4c0f7a484aae57628970bf55f539ab5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a5f74a252dbdc0b56180672dae17f1f52" id="r_a5f74a252dbdc0b56180672dae17f1f52"><td class="memItemLeft" align="right" valign="top">RateLimiterType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedrogon.html#a5f74a252dbdc0b56180672dae17f1f52">drogon::stringToRateLimiterType</a> (const std::string &amp;type)</td></tr>
<tr class="separator:a5f74a252dbdc0b56180672dae17f1f52"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:aefce0658eedfcdb98296279c6ca48ca9" id="r_aefce0658eedfcdb98296279c6ca48ca9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RateLimiter_8h.html#aefce0658eedfcdb98296279c6ca48ca9">kFixedWindow</a></td></tr>
<tr class="separator:aefce0658eedfcdb98296279c6ca48ca9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addb8dcc95bc78e95f6a55762e2a23e62" id="r_addb8dcc95bc78e95f6a55762e2a23e62"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RateLimiter_8h.html#addb8dcc95bc78e95f6a55762e2a23e62">kSlidingWindow</a></td></tr>
<tr class="separator:addb8dcc95bc78e95f6a55762e2a23e62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebc80085f1f0fbd9d33321dbaa169c28" id="r_aebc80085f1f0fbd9d33321dbaa169c28"><td class="memItemLeft" align="right" valign="top">class <a class="el" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedrogon.html#aebc80085f1f0fbd9d33321dbaa169c28">drogon::RateLimiter</a></td></tr>
<tr class="separator:aebc80085f1f0fbd9d33321dbaa169c28"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">变量说明</h2>
<a id="aefce0658eedfcdb98296279c6ca48ca9" name="aefce0658eedfcdb98296279c6ca48ca9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefce0658eedfcdb98296279c6ca48ca9">&#9670;&#160;</a></span>kFixedWindow</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">kFixedWindow</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="addb8dcc95bc78e95f6a55762e2a23e62" name="addb8dcc95bc78e95f6a55762e2a23e62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addb8dcc95bc78e95f6a55762e2a23e62">&#9670;&#160;</a></span>kSlidingWindow</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">kSlidingWindow</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
